/*
 * txdnet.cn tonydon
 * by netbeans ide 7.2
 */
package cn.txdnet.txcms.query;

import java.sql.Date;
import txdnet.util.StaticMark;

/**
 *
 * @author tangxiaodong
 */
public class LinksQuery extends BaseQuery {

    private static final long serialVersionUID = -5060349609687331730L;
    
    private Integer lkid;
    
    private String title;
    
    private Integer beginWeight;
    
    private Integer endWeight;
    
    private Byte pubstate;
    
    private Integer cid;
    
    private Byte lktype;
    
    private String selcol;
    
    private Date createBeginDate;
    
    private Long createBeginTime;
    
    private Date createEndDate;
    
    private Long createEndTime;

    @Override
    public void filter() {
        if(createBeginDate!=null && createEndDate!=null){
            createBeginTime = createBeginDate.getTime();
            createEndTime = createEndDate.getTime();
        }
        if(title!=null){
            title = StaticMark.STR_PERCENT.concat(title).concat(StaticMark.STR_PERCENT);
        }
    }

    /**
     * @return the lktype
     */
    public Byte getLktype() {
        return lktype;
    }

    /**
     * @param lktype the lktype to set
     */
    public void setLktype(Byte lktype) {
        this.lktype = lktype;
    }

    /**
     * @return the selcol
     */
    public String getSelcol() {
        return selcol;
    }

    /**
     * @param selcol the selcol to set
     */
    public void setSelcol(String selcol) {
        this.selcol = selcol;
    }

    /**
     * @return the lkid
     */
    public Integer getLkid() {
        return lkid;
    }

    /**
     * @param lkid the lkid to set
     */
    public void setLkid(Integer lkid) {
        this.lkid = lkid;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the beginWeight
     */
    public Integer getBeginWeight() {
        return beginWeight;
    }

    /**
     * @param beginWeight the beginWeight to set
     */
    public void setBeginWeight(Integer beginWeight) {
        this.beginWeight = beginWeight;
    }

    /**
     * @return the endWeight
     */
    public Integer getEndWeight() {
        return endWeight;
    }

    /**
     * @param endWeight the endWeight to set
     */
    public void setEndWeight(Integer endWeight) {
        this.endWeight = endWeight;
    }

    /**
     * @return the pubstate
     */
    public Byte getPubstate() {
        return pubstate;
    }

    /**
     * @param pubstate the pubstate to set
     */
    public void setPubstate(Byte pubstate) {
        this.pubstate = pubstate;
    }

    /**
     * @return the cid
     */
    public Integer getCid() {
        return cid;
    }

    /**
     * @param cid the cid to set
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * @return the createBeginDate
     */
    public Date getCreateBeginDate() {
        return createBeginDate;
    }

    /**
     * @param createBeginDate the createBeginDate to set
     */
    public void setCreateBeginDate(Date createBeginDate) {
        this.createBeginDate = createBeginDate;
    }

    /**
     * @return the createBeginTimeMs
     */
    public Long getCreateBeginTime() {
        return createBeginTime;
    }

    /**
     * @param createBeginTime the createBeginTime to set
     */
    public void setCreateBeginTime(Long createBeginTime) {
        this.createBeginTime = createBeginTime;
    }

    /**
     * @return the createEndDate
     */
    public Date getCreateEndDate() {
        return createEndDate;
    }

    /**
     * @param createEndDate the createEndDate to set
     */
    public void setCreateEndDate(Date createEndDate) {
        this.createEndDate = createEndDate;
    }

    /**
     * @return the createEndTimeMs
     */
    public Long getCreateEndTime() {
        return createEndTime;
    }

    /**
     * @param createEndTimeMs the createEndTimeMs to set
     */
    public void setCreateEndTime(Long createEndTime) {
        this.createEndTime = createEndTime;
    }
}
